/* Copyright 2010 John L. Reilly

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */

package com.riq.entity;

import java.io.Serializable;
import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Metric implements HasPrimaryKey<String>, Serializable {

	private static final long serialVersionUID = 1L;
	
	public String getPrimaryKey() {
		// TODO Auto-generated method stub
		return null;
	}

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	@Persistent
	private Long deptId;

	@Persistent
	private Long timeStamp;
	
    @Persistent
    private List<String> metrics;
	
	public Metric(Long deptId, Long timeStamp, List<String> metrics) {
	  
	 this.deptId = deptId;
	 this.timeStamp = timeStamp;
	 this.metrics = metrics;

	}
	
// GETS

	public Long getid() {
		return id;
	}

	public Long getdeptId() {
		return deptId;
	}

	public Long gettimeStamp() {
		return timeStamp;
	}

	public List<String> getmetrics() {
	  return metrics;
	}


// SETS
	
	public void setdeptId(Long deptId) {
		this.deptId = deptId;
	}

	public void settimeStamp(Long timeStamp) {
		this.timeStamp = timeStamp;
	}
	
	public void setmetrics(List<String> metrics) {
	  this.metrics = metrics;
	}
	

}